<div class="layui-form" lay-filter="layui-shopwarehouseout-edit-form-list" id="layui-shopwarehouseout-edit-form-list"style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">仓库</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="base_warehouse_name" value="{{ d.params.base_warehouse_name || '' }}" lay-verify="required" placeholder="请输入仓库名称" autocomplete="off" class="layui-input layui-bg-gray" disabled>
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">出库批次号</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="batch" value="{{ d.params.batch || '' }}" lay-verify="required" placeholder="请输入出库批次号" autocomplete="off" class="layui-input layui-bg-gray" disabled>
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">出库业务单号</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="business_sn" value="{{ d.params.business_sn || '' }}" lay-verify="required" placeholder="请输入出库业务单号" autocomplete="off" class="layui-input layui-bg-gray" disabled>
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">SKU</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="sku" value="{{ d.params.sku || '' }}" lay-verify="required" placeholder="请输入SKU" autocomplete="off" class="layui-input layui-bg-gray" disabled>
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">SKU名称</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="sku_name" value="{{ d.params.sku_name || '' }}" lay-verify="required" placeholder="请输入SKU名称" autocomplete="off" class="layui-input layui-bg-gray" disabled>
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">需求数量</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="need_quantity" value="{{ d.params.need_quantity || '' }}" lay-verify="required" placeholder="请输入需求数量" autocomplete="off" class="layui-input layui-bg-gray" disabled>
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">实际数量</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="quantity" onkeyup="clearNoNum(this)" value="{{ d.params.quantity || '' }}" lay-verify="required" placeholder="请输入实际数量" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">单价</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="price" value="{{ d.params.price || '' }}" lay-verify="required" placeholder="请输入单价" autocomplete="off" class="layui-input layui-bg-gray" disabled>
            </script>
        </div>
    </div>

    <script type="text/html" template>
        <input type="hidden" name="id" value="{{ d.params.id || '' }}">
    </script>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" value="确认" class="layui-btn">
        </div>
    </div>
</div>
<script type="text/javascript">
    /*数据校验*/
    function clearNoNum_(obj) {
        var reg=/^([1-9]\d*|[0]{1,1})$/; //含0正整数
        if(!reg.test(obj.value)) obj.value = "";
    }

</script>
